package com.wmlive.hhvideo.heihei.recordvideo;

import android.os.Parcel;
import android.os.Parcelable;

/**
 *  音乐信息扩展
 * Created by kangzhen on 2017/6/24.
 */

public class MusicCustomExtraInfo implements Parcelable {
    protected long mMusicId;

    /**
     * constructor
     */
    public MusicCustomExtraInfo() {
    }

    /**
     * constructor
     *
     * @param musicId
     */
    public MusicCustomExtraInfo(long musicId) {
        this.mMusicId = musicId;
    }


    /**
     * @return
     */
    public Long getMusicId() {
        return mMusicId;
    }

    /**
     * @param id
     */
    public void setMusicId(Long id) {
        this.mMusicId = id;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(this.mMusicId);
    }

    protected MusicCustomExtraInfo(Parcel in) {
        this.mMusicId = in.readLong();
    }

    public static final Creator<MusicCustomExtraInfo> CREATOR = new Creator<MusicCustomExtraInfo>() {
        @Override
        public MusicCustomExtraInfo createFromParcel(Parcel source) {
            return new MusicCustomExtraInfo(source);
        }

        @Override
        public MusicCustomExtraInfo[] newArray(int size) {
            return new MusicCustomExtraInfo[size];
        }
    };
}
